home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr05 / xnot12a.zip / SYSDEF.H < prev    next >
C/C++ Source or Header  |  1993-06-02  |  2KB  |  92 lines

  1. /*
  2.  * Name:    Mg 2a
  3.  *        MSDOS system header file (TurboC 1.5)
  4.  */
  5.  
  6. /* can't include these, the ANSI style prototypes conflict with the
  7.  * definitions in defs.h
  8.  */
  9. /* #include <stdlib.h> */
  10. /* #include <string.h> */
  11. /* #include <dir.h> */
  12. /* #include <stdio.h> */
  13.  
  14. #ifndef NULL
  15. # define NULL    0L
  16. #endif
  17.  
  18. #if defined(MSW) || defined (MSC)
  19. # define CONSTANT const
  20. #else
  21. # define NEAR
  22. # define CONSTANT 
  23. #endif
  24.  
  25. #define    KBLOCK    1024            /* Kill grow.            */
  26. #define    GOOD    0            /* Good exit status.        */
  27. #define    MAXPATH    256            /* Maximum length of path for chdir */
  28.  
  29. /*#define CRYPT*/            /* support encryption */
  30. #define LOCAL_VARARGS            /* use sys/default/varargs.h */
  31. #define DO_METAKEY            /* ALT acts like META */
  32.  
  33. #define METABIT 0x200
  34.  
  35. #define FKEYS                /* we have dedicated function keys */
  36. /* #define NO_DIRED */            /* dired works now */
  37. #define C_ALLOCA            /* used by regex, C version of alloca*/
  38.  
  39. typedef long    RSIZE;            /* Type for file/region sizes    */
  40. typedef short    KCHAR;            /* Type for internal keystrokes    */
  41.  
  42.  
  43. /*
  44.  * Macros used by the buffer name making code.
  45.  * Start at the end of the file name, scan to the left
  46.  * until BDC1 (or BDC2, if defined) is reached. The buffer
  47.  * name starts just to the right of that location, and
  48.  * stops at end of string (or at the next BDC3 character,
  49.  * if defined). BDC2 and BDC3 are mainly for VMS.
  50.  */
  51. #ifdef FAT
  52. # define    BDC1    '\\'
  53. #else
  54. # define    BDC1    '/'
  55. #endif
  56.  
  57. #define bcopy(s,d,n)    memcpy(d,s,n)    /* memory-to-memory copy    */
  58. #define bzero(s,n)    memset(s,0,n)    /* memory zero            */
  59.  
  60. #define bcmp(s1,s2,n)    memcmp(s2,s1,n) /* memory comparison        */
  61.  
  62. #ifdef MSC
  63. # define fncmp    stricmp
  64. #else
  65. # define fncmp    strcmp
  66. #endif
  67.  
  68. #define MALLOCROUND(m)    (m+=7,m&=~7)    /* round up to 8 byte boundry    */
  69.  
  70. #ifdef MSW
  71. # define getwd(cwd)    getcwd(cwd,NFILEN) /* get current working dir    */
  72. #endif
  73.  
  74. #ifdef MSC
  75. # define getwd(cwd)    getcwd(cwd,NFILEN) /* get current working dir    */
  76. #endif
  77.  
  78. #ifdef HP
  79. # define getwd(cwd)    getcwd(cwd,NFILEN) /* get current working dir    */
  80. #endif
  81.  
  82. #if defined(SVR4) || defined (SYSV)
  83. # define getwd(cwd)    (char *)getcwd(cwd,NFILEN) /* get current working dir */
  84. #endif
  85.  
  86. #define TABSTOP  8             /* we hate hard coded numbers, this is */
  87. #define TABROUND (TABSTOP -1)  /* still bad but better */
  88.  
  89. /* incremental indenting
  90. */
  91. #define INCSTEP 2
  92.